package com.example.tables.service.impl;

import com.example.tables.bean.TableBBean;
import com.example.tables.dao.TableADao;
import com.example.tables.dao.TableBDao;
import com.example.tables.service.TableBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "TableBService")
public class TableBServiceImpl implements TableBService {

    @Autowired
    TableBDao tableBDao;
    @Override
    public int addData(TableBBean tableBBean) {
        return tableBDao.addData(tableBBean);
    }

    @Override
    public int update(String a, String b, String c, String d, String e, String f, int aa, int bb, int cc, int dd, int ee, int aaRight, int bbRight, int ccRight, int ddRight, int eeRight) {
        return tableBDao.update( a,  b,  c,  d,  e,  f,  aa,  bb,  cc,  dd,  ee, aaRight, bbRight, ccRight, ddRight, eeRight);

    }

    @Override
    public int delete(String a) {
        return tableBDao.delete(a);
    }

    @Override
    public int deleteC(String c) {
        return tableBDao.deleteC(c);
    }

    @Override
    public List<TableBBean> getAll() {
        return tableBDao.getAll();
    }


}
